#pragma once

#include <QMainWindow>
#include "ui_CommConversion.h"

class CommConversion : public QMainWindow
{
	Q_OBJECT

public:
	CommConversion(QWidget *parent = nullptr);
	~CommConversion();
protected:
	void mousePressEvent(QMouseEvent* event) override;
	void mouseReleaseEvent(QMouseEvent* event) override;
	void mouseMoveEvent(QMouseEvent* event) override;

public slots:
	void slot_server_click();
	void slot_client_click();
	void slot_udp_click();
	void slot_file_click();
	void slot_datatype_click();
	void slot_save_click();
	void slot_save_as_click();
	void slot_info_click();
	void slot_switch_max();
private:
	Ui::CommConversion ui;
	Qt::MouseButton current_btn;
	QPoint current_mouse_point;
};
